/*
 * *****************************************************************************
 *  Copyright ( c ) 2019 huibur Inc. All Rights Reserved.
 *
 *  This software is the confidential and proprietary information of Huibur Inc
 *  (*Confidential Information*). You shall not disclose such Confidential Information
 *  and shall use it only in accordance with the terms of the license agreement
 *  you entered into with Huibur or a Huibur authorized
 *  reseller (the "License Agreement*).
 *  ******************************************************************************
 */

package com.huibur.devicecheck.utils;

import com.huibur.devicecheck.request.PageRes;

import java.util.List;

public class ConvertPageUtil {

    public static <T> PageRes<T> convertPage(long columns, long total, List<T> records){
        PageRes<T> pageRes = new PageRes<T>();
        pageRes.setColumns(columns);
        pageRes.setTotal(total);
        pageRes.setData(records);
        return pageRes;
    }

}
